package edu.dillo.dillotude;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class Level {
	
	private GridBlock[][] Blocks;
	
	private Image Background;
	
	public Level()
	{
	}
	/*
	public void init(GameContainer arg0, StateBasedGame arg1)
			throws SlickException {
		for (int i = 0; i < Blocks.length; i++)
		{
			for (int j = 0; j < Blocks[i].length; j++)
			{
				Blocks[i][j].init(arg0, arg1);
			}
		}
	}
	*/
	

	public GridBlock[][]  getBlocks() {
		return Blocks;
	}

	public void setBlocks(GridBlock[][] blocks) {
		Blocks = blocks;
	}

	public Image getBackground() {
		return Background;
	}

	public void setBackground(Image background) {
		Background = background;
	}
	
	
	public void render(GameContainer arg0, StateBasedGame arg1, Graphics g)
			throws SlickException {
		for (int i = 0; i < Blocks.length; i++)
		{
			for (int j = 0; j < Blocks[i].length; j++)
			{
				Blocks[i][j].render(arg0, arg1, g);
			}
		}
	}
}
